package io.jpress.module.page;


import io.jpress.permission.PermissionGroupBean;
import io.jpress.permission.PermissionGroupBuilder;
import io.jpress.permission.PermissionTypes;

import java.util.ArrayList;
import java.util.List;

/**
 * 自定义权限组
 *
 * @author michael yang (fuhai999@gmail.com)
 */
public class PagePermissionGroups implements PermissionGroupBuilder {

    public static final String PAGE = "module:page";


    /**
     * 页面模块的相关权限
     */
    private static List<PermissionGroupBean> pagePermissionGroups = new ArrayList<>();

    static {
        pagePermissionGroups.add(new PermissionGroupBean(PAGE, "页面", null, PermissionTypes.ACTION, 131));
    }


    @Override
    public List<PermissionGroupBean> buildPermissionGroups() {
        return pagePermissionGroups;
    }
}
